package com.yidu.mt.dao;

import com.yidu.mt.domain.MtUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public interface MtUserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(MtUser record);

    int insertSelective(MtUser record);

    MtUser selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(MtUser record);

    int updateByPrimaryKey(MtUser record);

    /**
     * 查询用户名密码是否存在
     * @param userName
     * @param userPassword
     * @return
     */
    int selectCountNameAndPassword(@Param("userName") String userName,@Param("userPassword") String userPassword);
}